package com.mmall.service.impl;

import com.mmall.common.ServerResponse;
import com.mmall.dao.SimditorMapper;
import com.mmall.pojo.Simditor;
import com.mmall.service.ISimditorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by xinlong on 2017/10/23.
 */
@Service("iSimditorService")
public class SimditorServiceImpl implements ISimditorService {

    @Autowired
    SimditorMapper simditorMapper;

    public ServerResponse insert(Simditor simditor){
        int rowCount = simditorMapper.insert(simditor);
        if(rowCount > 0){;
            return ServerResponse.createBySuccess("上传富文本成功",simditor);
        }
        return ServerResponse.createByErrorMessage("上传富文本成功");
    }

}
